package com.authority.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.authority.entry.AuthUserDataDO;
import com.authority.entry.ext.ExtAuthUserDataDO;
import com.suixun.entity.RegionInfo;
import com.suixun.entity.Schoolinfo;

public interface AuthUserDataDao {

		
	Integer insert(AuthUserDataDO data);
	
	void updateBySelective(AuthUserDataDO data);
	
	void update(AuthUserDataDO data);
	
	void del(@Param(value="id")Integer id);
	
	void deleteByUserId(@Param(value="userId")Integer userId);
	
	Integer countByUserId(@Param(value="userid")Long userid);
	
	List<AuthUserDataDO> getAuthUserDatasByParam(Map<String,Object> map);
	
	List<RegionInfo> getRegionByUserId(Map<String,Object> map);
	
	List<ExtAuthUserDataDO> getAuthUserDatasWithSchoolByUserId(@Param(value="userId")Integer userId);
	
	Integer updateRegionBySchoolId(Map<String,Object> map);
	
	void deleteBySchoolId(@Param(value="schoolId")Integer schoolId);
	
	List<Schoolinfo> getSchoolsByUserId(Map<String,Object> map);
}
